It won't find every bug you still need to do unit testing and acceptance testing nor is PMD a substitute for a good debugger when you're hunting down a known bug. PMD不可能找到每个bug,您仍然需要做单元测试和接受测试,在查找已知bug时,即使是PMD也无法替代一个好的调试器。
Testing the example code for this article showed one bug in CXF, which is being fixed. 测试本文的示例代码时发现了CXF中的一个bug,这个bug正在纠正。
During the very basic testing I did for this article, I encountered multiple bugs. 在为本文做非常基本的测试期间,我遇到了多个bug。
During IBM WebSphere Real Time testing, timing differences surfaced race conditions ( in other words, bugs) in test programs that had run fine for years on other JVMs. 在IBMWebSphereRealTime测试期间,在测试程序中,同步差异使竞争条件(换言之,bug)浮出了水面,而这些测试程序已经在其他JVM上运行了很多年。